package com.mallcloud.mall.mall.api.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.mallcloud.mall.common.core.constant.enums.mall.XGLEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

@ApiModel(value = "XglParkingRecordModel", description = "星光里停车兑换记录")
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("ZHTC_TCDH")
public class XglParkingRecordModel implements Serializable {
	private static final long serialVersionUID = 1L;

	@TableField("DHMOBILE")
	@ApiModelProperty(value = "兑换人手机号")
	private String redeemerPhone;

	@TableField("DHCARDNO")
	@ApiModelProperty(value = "卡号")
	private String cardNo;

	/**
	 * {@link XGLEnum.RedeemTypeEnum}
	 */
	@TableField("DHLX")
	@ApiModelProperty(value = "兑换类型")
	private Integer redeemType;

	@TableField("DHJF")
	@ApiModelProperty(value = "兑换积分")
	private String redeemPoints;

	@TableField("DHDATE")
	@ApiModelProperty(value = "兑换时间")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private Date redeemTime;

	/**
	 * {@link XGLEnum.RedeemStatusEnum}
	 */
	@TableField("DHZT")
	@ApiModelProperty(value = "兑换状态")
	private String redeemStatus;

	@TableField("DHCP")
	@ApiModelProperty(value = "兑换车牌")
	private String plateNo;

	@TableField("DHTPPID")
	@ApiModelProperty(value = "活动ID")
	private String activityId;

	@TableField("DHSC")
	@ApiModelProperty(value = "兑换时长")
	private String redeemDuration;

	@TableField("DHQNO")
	@ApiModelProperty(value = "兑换的券编号")
	private String couponId;
}
